<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			.box1{
				width: 300px;
				height: 500px;
				border: 1px solid #CCCCCC;
				margin: 50px auto;
				position: relative;
				overflow: hidden;
			}
			.box1  p{
				width: 100%;
				height: 50px;
				background-color: yellow;
				position: absolute;
				bottom: -50px;
				text-align: center;
				line-height: 50px;
				transition: all 1s;
			}
			.box1:hover{
				box-shadow: 0px 5px 20px black ; 
				transition: all 1s;
			}
			.box1 :hover p{
				bottom: 25px;
			}
		</style>
	</head>
	<body>
		<div class="box1">
			
				<p>我就是我</p>
			
		</div>
		<div></div>
		<div></div>
	</body>
</html>
